package com.sw.study.springmvc;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by sw on 2020/4/18.
 */
@Controller
@RequestMapping
public class LoginController implements org.springframework.web.servlet.mvc.Controller {
    /**
     * 登陆界面
     * @param request
     * @param response
     * @return
     * @throws Exception
     */
    @RequestMapping("/login")
    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        ModelAndView modelAndView=new ModelAndView();
        modelAndView.setViewName("login");
        return modelAndView;
    }


}